<!DOCTYPE html>
<html lang="zh">
<head>
    <th:block th:include="include :: header('动账信息')"/>
</head>
<body class="gray-bg">
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th></th>
                                <th>
                                    文豪
                                </th>
                                <th>
                                    蒙蒙
                                </th>
                                <th>
                                    共同
                                </th>
                                <th>
                                    总额
                                </th>
                                <th>
                                    流动资金
                                </th>
                                <th>
                                    账户市值
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <th class="text-nowrap">金额</th>
                                <td th:text="${whBalance}"></td>
                                <td th:text="${mmBalance}"></td>
                                <td th:text="${gtBalance}"></td>
                                <td th:text="${sumBalance}"></td>
                                <td th:text="${ldzjBalance}"></td>
                                <td th:text="${zszBalance}"></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>


                </div>
            </div>
        </div>

    </div>
</div>
<div class="container-fluid">
    <div class="btn-group-sm" id="toolbar" role="group">
        <a class="btn btn-success" onclick="$.operate.add()">
            <i class="fa fa-plus"></i> 新增
        </a>
    </div>
    <div class="row">
        <div class="col-sm-12 select-table table-bordered">
            <table id="bootstrap-table"
                   data-reorderable-columns="true"></table>
        </div>
    </div>
</div>


<div th:include="include :: footer"></div>
<script th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
<th:block th:include="include :: bootstrap-table-reorder-columns-js"/>
<script th:inline="javascript">
    var prefix = ctx + "finance/dzxx";
    var datas = [[${@dict.getType('sys_normal_disable')}]];

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            modalName: "动账信息",
            columns: [
                {field: 'createTime', title: '操作时间'},
                {field: 'tranType', title: '交易类型'},
                {field: 'amount', title: '金额'},
                {field: 'userName', title: '变动人'},
                {field: 'wh', title: '文豪'},
                {field: 'mm', title: '蒙蒙'},
                {field: 'gt', title: '共同'},
                {field: 'remark', title: '备注'},
                {
                    field: 'imageFile',
                    title: '图片',
                    formatter: function (value, row, index) {
                        if(value !=null){
                            return $.table.imageView(value);
                        }
                    }
                }
            ]
        };
        $.table.init(options);
    });

</script>


</body>
</html>
